package org.sunrise.game.rpc.example.service.test2;

import org.sunrise.game.rpc.annotation.RpcMethod;
import org.sunrise.game.rpc.annotation.RpcService;
import org.sunrise.game.rpc.service.BaseService;

@RpcService
public class TestService2 extends BaseService {
    public TestService2(String nodeId) {
        super(nodeId);
    }

    @RpcMethod
    public void test() {
        System.out.println("TestService2-test");
//        RpcFunction rpcFunction = RpcFunction.newInstance(getNodeId());
//        rpcFunction.call(CallEnum.TestService1_test, "id", System.currentTimeMillis());
//        rpcFunction.listenResult(rpcResult -> {
//            System.out.println("rpc listenResult");
//        });
    }
}
